package com.gopay.common.domain.bank.route.po.pay;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.*;
import java.util.Date;

/**
 * @description  网联出款通道
 * @author jianghp
 * @date 2018/5/23 14:48
 * Copyright (c) 2018. www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "PAY_NUCC_CHANNEL")
public class PayNuccChannel extends BaseEntity {

    private static final long serialVersionUID = -1558261323540674274L;

    @Id
    @SequenceGenerator(name = "payNuccChannelSeq", sequenceName = "PAY_NUCC_CHANNEL_SEQ" ,allocationSize=1)
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "payNuccChannelSeq")
    @Column(name = "ID", unique = true, nullable = false)
    private Long id;

    @Column(name = "REC_BANK_NAME")
    private String recBankName;

    @Column(name = "REC_BANK_CODE")
    private String recBankCode;

    @Column(name = "DEF_BANK_NAME")
    private String defBankName;

    @Column(name = "DEF_BANK_CODE")
    private String defBankCode;

    @Column(name = "DEF_BANK_ACCT")
    private String defBankAcct;

    @Column(name = "DEF_BANK_ACCT_NAME")
    private String defBankAcctName;

    @Column(name = "CUR_BANK_NAME")
    private String curBankName;

    @Column(name = "CUR_BANK_CODE")
    private String curBankCode;

    @Column(name = "CUR_BANK_ACCT")
    private String curBankAcct;

    @Column(name = "CUR_BANK_ACCT_NAME")
    private String curBankAcctName;

    @Column(name = "TYPE")
    private String type;

    @Column(name = "CREATED_TS")
    @Temporal(TemporalType.TIMESTAMP)
    private Date createdTs;

    @Column(name = "UPDATED_TS")
    @Temporal(TemporalType.TIMESTAMP)
    private Date updatedTs;

    @Column(name = "VERSION")
    @Version
    private Integer version;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRecBankName() {
        return recBankName;
    }

    public void setRecBankName(String recBankName) {
        this.recBankName = recBankName;
    }

    public String getRecBankCode() {
        return recBankCode;
    }

    public void setRecBankCode(String recBankCode) {
        this.recBankCode = recBankCode;
    }

    public String getDefBankName() {
        return defBankName;
    }

    public void setDefBankName(String defBankName) {
        this.defBankName = defBankName;
    }

    public String getDefBankCode() {
        return defBankCode;
    }

    public void setDefBankCode(String defBankCode) {
        this.defBankCode = defBankCode;
    }

    public String getDefBankAcct() {
        return defBankAcct;
    }

    public void setDefBankAcct(String defBankAcct) {
        this.defBankAcct = defBankAcct;
    }

    public String getDefBankAcctName() {
        return defBankAcctName;
    }

    public void setDefBankAcctName(String defBankAcctName) {
        this.defBankAcctName = defBankAcctName;
    }

    public String getCurBankName() {
        return curBankName;
    }

    public void setCurBankName(String curBankName) {
        this.curBankName = curBankName;
    }

    public String getCurBankCode() {
        return curBankCode;
    }

    public void setCurBankCode(String curBankCode) {
        this.curBankCode = curBankCode;
    }

    public String getCurBankAcct() {
        return curBankAcct;
    }

    public void setCurBankAcct(String curBankAcct) {
        this.curBankAcct = curBankAcct;
    }

    public String getCurBankAcctName() {
        return curBankAcctName;
    }

    public void setCurBankAcctName(String curBankAcctName) {
        this.curBankAcctName = curBankAcctName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Date getCreatedTs() {
        return createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    public Date getUpdatedTs() {
        return updatedTs;
    }

    public void setUpdatedTs(Date updatedTs) {
        this.updatedTs = updatedTs;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

}
